package com.guochaojava.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 比赛结束参数
 *
 * @author guochao
 * @since 1.0.0
 */
@Data
@ApiModel(value = "比赛结束参数", description = "比赛结束参数")
public class GameEndParam {

    @ApiModelProperty(value = "发起人主键id", name = "memberId", dataType = "int", required = true)
    @NotNull(message = "发起人主键id不能为空")
    private Integer memberId;

    @ApiModelProperty(value = "对手主键id", name = "rivalMemberId", dataType = "int", required = true)
    @NotNull(message = "对手主键id不能为空")
    private Integer rivalMemberId;

    @ApiModelProperty(value = "对手昵称", name = "rivalNickName", dataType = "string", required = true)
    @NotNull(message = "对手昵称不能为空")
    private String rivalNickName;

    @ApiModelProperty(value = "对手头像", name = "rivalImg", dataType = "string", required = true)
    @NotNull(message = "对手头像不能为空")
    private String rivalImg;

    @ApiModelProperty(value = "胜负标识  1：胜利 0：失败", name = "type", dataType = "int", required = true)
    @NotNull(message = "胜负标识不能为空")
    private Integer type;

    @ApiModelProperty(value = "第一场比赛记录 eg:  21,18,1", name = "type", dataType = "string", required = true)
    @NotNull(message = "第一场比赛记录不能为空")
    private String one;

    @ApiModelProperty(value = "第二场比赛记录 eg:  18,21,0", name = "type", dataType = "string")
    private String two;

    @ApiModelProperty(value = "第三场比赛记录 eg:  23,21,1", name = "type", dataType = "string")
    private String three;
}